/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author shilinghuai
 * @create 2022/4/4
 * @since 1.0.0
 */
public class TestVolatile extends Thread{
        private static boolean signal= true;
        public static void main(String[] args){
            TestVolatile my1 = new TestVolatile();
            my1.start();

            try {
                Thread.sleep(1000);
            }
            catch (InterruptedException e) {
                e.printStackTrace();
            }
            signal=false;
                System.out.println("aaa");
        }
        public void run(){
                while (signal){

                }
                System.out.println("0000");
        }


}
